xref: /llvm-project/libc/test/src/unistd/getpid_test.cpp (revision b6bc9d72f65a5086f310f321e969d96e9a559e75)
14f1474daSSiva Chandra Reddy //===-- Unittests for getpid ----------------------------------------------===//
24f1474daSSiva Chandra Reddy //
34f1474daSSiva Chandra Reddy // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
44f1474daSSiva Chandra Reddy // See https://llvm.org/LICENSE.txt for license information.
54f1474daSSiva Chandra Reddy // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
64f1474daSSiva Chandra Reddy //
74f1474daSSiva Chandra Reddy //===----------------------------------------------------------------------===//
84f1474daSSiva Chandra Reddy 
94f1474daSSiva Chandra Reddy #include "src/unistd/getpid.h"
10af1315c2SSiva Chandra Reddy #include "test/UnitTest/Test.h"
114f1474daSSiva Chandra Reddy 
TEST(LlvmLibcGetPidTest,SmokeTest)124f1474daSSiva Chandra Reddy TEST(LlvmLibcGetPidTest, SmokeTest) {
134f1474daSSiva Chandra Reddy   // getpid always succeeds. So, we just call it as a smoke test.
14*b6bc9d72SGuillaume Chatelet   LIBC_NAMESPACE::getpid();
154f1474daSSiva Chandra Reddy }
16