Commit fca52539 authored by Kirill Smelkov's avatar Kirill Smelkov

.

parent 2e7f299e
// Copyright (C) 2018-2020 Nexedi SA and Contributors. // Copyright (C) 2018-2021 Nexedi SA and Contributors.
// Kirill Smelkov <kirr@nexedi.com> // Kirill Smelkov <kirr@nexedi.com>
// //
// This program is free software: you can Use, Study, Modify and Redistribute // This program is free software: you can Use, Study, Modify and Redistribute
...@@ -111,7 +111,7 @@ func verify(t *testing.T, f func(t *tracetest.T), targvExtra ...string) { ...@@ -111,7 +111,7 @@ func verify(t *testing.T, f func(t *tracetest.T), targvExtra ...string) {
// Test2ThreadsOK demonstrates verifying 2 threads that execute independently. // Test2ThreadsOK demonstrates verifying 2 threads that execute independently.
// There is no concurreny problem here. // There is no concurrency problem here.
func Test2ThreadsOK(t *testing.T) { func Test2ThreadsOK(t *testing.T) {
verify(t, func(t *tracetest.T) { verify(t, func(t *tracetest.T) {
var wg sync.WaitGroup var wg sync.WaitGroup
...@@ -224,7 +224,7 @@ func TestExpectValue(t *testing.T) { ...@@ -224,7 +224,7 @@ func TestExpectValue(t *testing.T) {
// ---------------------------------------- // ----------------------------------------
// verifyInSubprocess runs f in subprocess and verifies that its output matches testOutput. // verifyInSubprocess runs f in subprocess and verifies that its output matches testExpectMap[t.Name].
func verifyInSubprocess(t *testing.T, f func(t *testing.T), targvExtra ...string) { func verifyInSubprocess(t *testing.T, f func(t *testing.T), targvExtra ...string) {
t.Helper() t.Helper()
if os.Getenv("TRACETEST_EX_VERIFY_IN_SUBPROCESS") == "1" { if os.Getenv("TRACETEST_EX_VERIFY_IN_SUBPROCESS") == "1" {
......
...@@ -70,12 +70,7 @@ ...@@ -70,12 +70,7 @@
// XXX link to example. // XXX link to example.
// //
// //
// XXX say that checker will detect deadlock if there is no event or it or // XXX say that deadlocks are detected?
// another comes at different trace channel.
//
// XXX (if tested system is serial only there is no need to use Dispatcher and
// routing - the collector can send output directly to the only Chan with
// only one EventChecker connected to it).
package tracetest package tracetest
import ( import (
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment