Skip to content

Commit c6774a0

Browse files
committed
fix log tests and README
1 parent 02c1d4e commit c6774a0

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ List of options provided by CMake:
128128
| UMF_BUILD_EXAMPLES | Build UMF examples | ON/OFF | ON |
129129
| UMF_BUILD_FUZZTESTS | Build UMF fuzz tests (supported only on Linux with Clang) | ON/OFF | OFF |
130130
| UMF_BUILD_GPU_EXAMPLES | Build UMF GPU examples | ON/OFF | OFF |
131-
| UMF_DEVELOPER_MODE | Enable additional developer checks | ON/OFF | OFF |
131+
| UMF_DEVELOPER_MODE | Enable additional developer checks and logs | ON/OFF | OFF |
132132
| UMF_FORMAT_CODE_STYLE | Add clang, cmake, and black -format-check and -format-apply targets to make | ON/OFF | OFF |
133133
| UMF_TESTS_FAIL_ON_SKIP | Treat skips in tests as fail | ON/OFF | OFF |
134134
| UMF_USE_ASAN | Enable AddressSanitizer checks | ON/OFF | OFF |

test/utils/utils_log.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,11 @@ int fput_count = 0;
3131

3232
int mock_fputs(const char *s, FILE *stream) {
3333
fput_count++;
34+
#ifndef UMF_DEVELOPER_MODE
3435
if (!expected_message.empty()) {
3536
EXPECT_STREQ(s, expected_message.c_str());
3637
}
38+
#endif
3739
EXPECT_EQ(stream, expected_stream);
3840
return (int)strlen(s);
3941
}

0 commit comments

Comments
 (0)