File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 14
14
TEST (LlvmLibcClockGetTime, RealTime) {
15
15
struct timespec tp;
16
16
int result;
17
- result = clock_gettime (CLOCK_REALTIME, &tp);
17
+ result = __llvm_libc:: clock_gettime (CLOCK_REALTIME, &tp);
18
18
ASSERT_EQ (result, 0 );
19
19
ASSERT_GT (tp.tv_sec , time_t (0 ));
20
20
}
@@ -23,10 +23,10 @@ TEST(LlvmLibcClockGetTime, RealTime) {
23
23
TEST (LlvmLibcClockGetTime, MonotonicTime) {
24
24
struct timespec tp1, tp2;
25
25
int result;
26
- result = clock_gettime (CLOCK_MONOTONIC, &tp1);
26
+ result = __llvm_libc:: clock_gettime (CLOCK_MONOTONIC, &tp1);
27
27
ASSERT_EQ (result, 0 );
28
28
ASSERT_GT (tp1.tv_sec , time_t (0 ));
29
- result = clock_gettime (CLOCK_MONOTONIC, &tp2);
29
+ result = __llvm_libc:: clock_gettime (CLOCK_MONOTONIC, &tp2);
30
30
ASSERT_EQ (result, 0 );
31
31
ASSERT_GE (tp2.tv_sec , tp1.tv_sec ); // The monotonic clock should increase.
32
32
if (tp2.tv_sec == tp1.tv_sec ) {
You can’t perform that action at this time.
0 commit comments