178f172e4SRaman Tenneti //===-- Unittests for gettimeofday ----------------------------------------===// 278f172e4SRaman Tenneti // 378f172e4SRaman Tenneti // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 478f172e4SRaman Tenneti // See https://llvm.org/LICENSE.txt for license information. 578f172e4SRaman Tenneti // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 678f172e4SRaman Tenneti // 778f172e4SRaman Tenneti //===----------------------------------------------------------------------===// 878f172e4SRaman Tenneti 9*f9c2377fSMichael Jones #include "hdr/types/struct_timeval.h" 1078f172e4SRaman Tenneti #include "src/time/gettimeofday.h" 11af1315c2SSiva Chandra Reddy #include "test/UnitTest/Test.h" 1278f172e4SRaman Tenneti 1378f172e4SRaman Tenneti TEST(LlvmLibcGettimeofday, SmokeTest) { 14ec10c36bSlntue timeval tv; 156d53fdeaSlntue int ret = LIBC_NAMESPACE::gettimeofday(&tv, nullptr); 1678f172e4SRaman Tenneti ASSERT_EQ(ret, 0); 1778f172e4SRaman Tenneti } 18