Skip to content

Commit 6fecf8c

Browse files
authored
Add newlines to end of print statements in tests. NFC (#17342)
1 parent 0b0653e commit 6fecf8c

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

tests/core/pthread/test_pthread_dylink_longjmp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ int main() {
3232
rc = pthread_join(t, NULL);
3333
assert(!rc);
3434

35-
printf("Done");
35+
printf("Done\n");
3636
return 0;
3737
}

tests/cstdio/test_remove.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ void test() {
5757
err = std::remove("dir");
5858
assert(!err);
5959

60-
std::cout << "success";
60+
std::cout << "success\n";
6161
}
6262

6363
int main() {

tests/pthread/test_pthread_cleanup.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ int main() {
8383
// s = pthread_cancel(thr[3]);
8484
// assert(s == 0);
8585
pthread_cleanup_pop(1);
86-
printf("Cleanup state variable: %ld", cleanupState);
86+
printf("Cleanup state variable: %ld\n", cleanupState);
8787
assert(cleanupState == 907640832);
8888

8989
pthread_cleanup_pop(1);

tests/test_core.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1536,9 +1536,9 @@ def test_exceptions_uncaught_2(self):
15361536
}
15371537
15381538
if (std::uncaught_exception())
1539-
std::cout << "ERROR: uncaught_exception still set.";
1539+
std::cout << "ERROR: uncaught_exception still set.\n";
15401540
else
1541-
std::cout << "OK";
1541+
std::cout << "OK\n";
15421542
}
15431543
'''
15441544
self.do_run(src, 'OK\n')

0 commit comments

Comments
 (0)