Edit

kc3-lang/angle/tests/standalone_tests/standalone_test_main.cpp

Branch :

  • Show log

    Commit

  • Author : Jamie Madill
    Date : 2013-12-09 13:03:32
    Hash : c5a63124
    Message : Add unit tests for proper TLS initialization. The test creates a worker thread which initializes EGL, then calls EGL methods which check for thread local storage values. This can cause a crash of the values are uninialized. BUG=angle:488 Change-Id: Ibaffede0605c720ba9ca47910690a1334ee9e20e Reviewed-on: https://chromium-review.googlesource.com/179130 Reviewed-by: Shannon Woods <shannonwoods@chromium.org> Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Geoff Lang <geofflang@chromium.org> Tested-by: Geoff Lang <geofflang@chromium.org>

  • tests/standalone_tests/standalone_test_main.cpp
  • //
    // Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style license that can be
    // found in the LICENSE file.
    //
    
    #include "gmock/gmock.h"
    #include "gtest/gtest.h"
    
    int main(int argc, char** argv)
    {
        testing::InitGoogleMock(&argc, argv);
        int rt = RUN_ALL_TESTS();
    
        return rt;
    }