1 // Copyright 2020 Google LLC.
2 // Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
4 #include "include/core/SkTypes.h"
12 void print_localtime() {
13 std::time_t result = std::time(nullptr);
14 std::cout << std::asctime(std::localtime(&result));
17 int main(int argc, char** argv) {
18 SkDebugf("Hello world\n");
20 // https://docs.bazel.build/versions/main/test-encyclopedia.html#role-of-the-test-runner
21 if (png_access_version_number() == 10638) {
22 printf("PASS\n"); // This tells the human the test passed.
23 return 0; // This tells Bazel the test passed.
25 printf("FAIL\n"); // This tells the human the test failed.
26 return 1; // This tells Bazel the test failed.