pytorch/c10/test/util/Macros.h
Nikita Shulga 2ef5b947a8 Disable unit test failing on Windows (#35549)
Summary:
Introduce DISABLED_ON_WINDOWS macro, that adds `DISABLED_` prefix to string if compiled for Win32
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35549

Test Plan: CI

Differential Revision: D20700915

Pulled By: malfet

fbshipit-source-id: adddfe2db89b7139093ceef6899862bce0adcf2d
2020-03-27 19:20:29 -07:00

10 lines
176 B
C

#ifndef C10_TEST_CORE_MACROS_MACROS_H_
#ifdef _WIN32
#define DISABLED_ON_WINDOWS(x) DISABLED_##x
#else
#define DISABLED_ON_WINDOWS(x) x
#endif
#endif // C10_MACROS_MACROS_H_