Skip to content

Commit b0ce247

Browse files
committed
Fix disable test_memory_leaks_linux.cpp for windows platform
1 parent fbaf142 commit b0ce247

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/tests/test_memory_leaks_linux.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,12 @@ Official Source Code: https://github.com/wsjcpp/wsjcpp-yaml
2828
#include <fstream>
2929
#include <wsjcpp_yaml.h>
3030

31-
#ifndef WINDOWS
31+
#if defined(_WIN32)
32+
int main() {
33+
// for windows skip test
34+
return 0;
35+
}
36+
#else
3237

3338
#include "get_current_rss.h"
3439
#include "process_mem_usage.h"

0 commit comments

Comments
 (0)