Home | History | Annotate | Download | only in unittests
      1 //===- SystemUtilsTest.cpp ------------------------------------------------===//
      2 //
      3 //                     The MCLinker Project
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 #include "mcld/Support/SystemUtils.h"
     10 #include "SystemUtilsTest.h"
     11 
     12 using namespace mcld;
     13 using namespace mcld::test;
     14 
     15 // Constructor can do set-up work for all test here.
     16 SystemUtilsTest::SystemUtilsTest() {
     17 }
     18 
     19 // Destructor can do clean-up work that doesn't throw exceptions here.
     20 SystemUtilsTest::~SystemUtilsTest() {
     21 }
     22 
     23 // SetUp() will be called immediately before each test.
     24 void SystemUtilsTest::SetUp() {
     25 }
     26 
     27 // TearDown() will be called immediately after each test.
     28 void SystemUtilsTest::TearDown() {
     29 }
     30 
     31 //===----------------------------------------------------------------------===//
     32 // Testcases
     33 //===----------------------------------------------------------------------===//
     34 TEST_F(SystemUtilsTest, test_strerror) {
     35   ASSERT_TRUE(NULL != mcld::sys::strerror(0));
     36 }
     37